package com.woniuxy.java106crm.service.impl;

import com.woniuxy.java106crm.entity.Lost;
import com.woniuxy.java106crm.mapper.SureLostMapper;
import com.woniuxy.java106crm.service.SureLostService;
import com.woniuxy.java106crm.vo.ServiceTypeCountVo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class SureLostServiceImpl implements SureLostService {
    @Resource
    private SureLostMapper sureLostMapper;

    @Override
    public void addSureLost(Lost lost) {
        sureLostMapper.addSureLost(lost);
    }

    @Override
    public List<ServiceTypeCountVo> lostCustomerAnalyze() {
        return sureLostMapper.lostCustomerAnalyze();
    }
}
